.profile-container {
    min-height: 100vh;
    background: linear-gradient(180deg, #334cca 0%, #bcbceb 30%, #fdfdfd 60%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  
  /* 顶部导航栏 */
  .profile-header {
    padding: 15px 20px;
    background: transparent;
  }
  
  .back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .back-icon {
    font-size: 24px;
    font-weight: bold;
  }
  
  /* 主要内容区域 */
  .profile-main {
    padding: 0 20px 40px;
    position: relative;
  }
  
  /* 头像和姓名区域 */
  .profile-header-info {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
  }
  
  /* 基本信息卡片 */
  .info-card {
    background: white;
    border-radius: 15px;
    padding: 50px 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  /* 卡片右上角编辑按钮 */
  .card-edit-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 5;
  }
  
  .card-edit-btn:hover {
    background: rgba(124, 77, 255, 0.1);
  }
  
  .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c4dff 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border: 3px solid white;
  }
  
  .avatar-text {
    color: white;
    font-size: 32px;
    font-weight: bold;
  }
  
  .teacher-name {
    margin: 0 0 65px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* 信息项 */
  .info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .info-item:last-child {
    border-bottom: none;
  }
  
  .info-item.readonly {
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.02);
  }
  
  .info-item.readonly .info-label,
  .info-item.readonly .info-value {
    color: #666;
  }
  
  .info-label {
    color: #000;
    font-weight: 500;
    flex-shrink: 0;
  }
  
  .info-value {
    color: #000;
    text-align: right;
    word-break: break-all;
  }
  
  /* 加载状态样式 */
  .loading-text {
    color: #999;
    font-style: italic;
    opacity: 0.8;
  }
  
  /* 个人主页地址卡片 */
  .homepage-card {
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .homepage-card .info-item {
    border-bottom: none;
    padding: 0;
    align-items: center;
  }
  
  .homepage-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
  }
  
  .homepage-url {
    color: #000;
    word-break: break-all;
    text-align: right;
  }
  
  .edit-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
  }
  
  .edit-btn:hover {
    background: rgba(124, 77, 255, 0.1);
  }
  
  /* 功能按钮区 */
  .action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .action-btn {
    width: 120px;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .action-btn.primary {
    background: #4285f4;
    color: white;
  }
  
  .action-btn.primary:hover {
    background: #3367d6;
    transform: translateY(-1px);
  }
  
  /* 各个信息区域卡片 */
  .section-card {
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
  }
  
  .team-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .team-item-with-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .team-btn {
    padding: 8px 16px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .team-btn:hover {
    background: #3367d6;
  }
  
  .team-manage-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .team-manage-btn:hover {
    background: #5a6268;
  }
  
  .expert-btn {
    background: #28a745; /* 绿色 */
    color: white;
  }
  
  .expert-btn:hover {
    background: #218838;
  }
  
  .empty-teams {
    text-align: center;
    padding: 30px 20px;
  }
  
  .empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  .empty-hint {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
  }
  
  .loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    color: #666;
  }
  
  .loading-text {
    font-size: 14px;
    color: #999;
    font-style: italic;
  }
  
  
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  
  .experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .experience-list li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    border-left: 3px solid #7c4dff;
    padding-left: 12px;
    margin-bottom: 8px;
    background: rgba(124, 77, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
  }
  
  /* 底部按钮 */
  .bottom-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
  }
  
  .qr-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 250px;
  }
  
  .qr-btn:hover {
    background: #3367d6;
    transform: translateY(-1px);
  }
  
  .logout-btn {
    background: transparent;
    color: #ff4757;
    border: 2px solid #ff4757;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 250px;
  }
  
  .logout-btn:hover {
    background: #ff4757;
    color: white;
  }
  
  /* 移动端适配 */
  @media (max-width: 768px) {
    .profile-main {
      padding: 0 15px 30px;
    }
    
    .info-card {
      padding: 45px 20px 25px;
    }
    
    .info-item {
      font-size: 16px;
      padding: 12px 0;
    }
    
    .homepage-card {
      padding: 18px 20px;
    }
    
    .action-buttons {
      flex-direction: column;
      align-items: center;
    }
    
    .action-btn {
      padding: 15px 25px;
      font-size: 16px;
      width: 250px;
    }
    
    .section-card {
      padding: 18px 20px;
    }
    
    .avatar-placeholder {
      top: 50px;
    }
    
    .teacher-name {
      margin: 0 0 60px 0;
    }
  }
  
  @media (max-width: 480px) {
    .profile-main {
      padding: 0 12px 25px;
    }
    
    .info-card {
      padding: 40px 15px 20px;
    }
    
    .avatar-placeholder {
      width: 70px;
      height: 70px;
      top: 25px;
    }
    
    .avatar-text {
      font-size: 28px;
    }
    
    .teacher-name {
      font-size: 20px;
      margin: 0 0 55px 0;
    }
    
    .info-item {
      font-size: 15px;
      padding: 10px 0;
    }
    
    .homepage-card {
      padding: 15px 15px;
    }
    
    .section-card {
      padding: 15px 15px;
    }
  }
  
  /* 弹窗样式 */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
  }
  
  .modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
  }
  
  .modal-header {
    background: linear-gradient(135deg, #334cca 0%, #bcbceb 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }
  
  .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .modal-body {
    padding: 30px 20px;
    text-align: center;
  }
  
  .icon-wrapper {
    margin-bottom: 20px;
  }
  
  .warning-icon {
    font-size: 48px;
    margin: 0 auto;
    animation: pulse 2s infinite;
  }
  
  .modal-text {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
  }
  
  .modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
  }
  
  .modal-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  
  .cancel-btn,
  .confirm-btn {
    flex: 1;
    max-width: 120px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
  }
  
  .cancel-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
  }
  
  .confirm-btn {
    background: #ff4757;
    color: white;
    border: none;
  }
  
  .confirm-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
  }
  
  /* 动画效果 */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: scale(0.7);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  /* 编辑弹窗样式 */
  .edit-modal {
    max-width: 500px;
  }
  
  .edit-form {
    width: 100%;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    text-align: left;
  }
  
  .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
  }
  
  .form-input:focus {
    outline: none;
    border-color: #334cca;
    box-shadow: 0 0 0 3px rgba(51, 76, 202, 0.1);
  }
  
  .form-input:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
  }
  
  .form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
  }
  
  /* 成功和错误状态的头部样式 */
  .success-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  }
  
  .error-header {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  }
  
  /* 消息图标样式 */
  .message-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    font-weight: bold;
    margin: 0 auto;
    animation: pulse 2s infinite;
  }
  
  .success-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  }
  
  .error-icon {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  }
  
  /* 禁用状态的按钮样式 */
  .cancel-btn:disabled,
  .confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
  }
  
  .qr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #9ca3af;
  }
  
  /* 二维码弹窗样式 */
  .qr-modal {
    max-width: 450px;
    min-width: 350px;
  }
  
  .qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .qr-image {
    width: 280px;
    height: 280px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .qr-description {
    text-align: center;
  }
  
  .qr-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
  }
  
  .qr-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
  }
  
  .download-btn {
    flex: 1;
    max-width: 120px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #28a745;
    color: white;
    border: none;
  }
  
  .download-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }
  
  /* 弹窗移动端适配 */
  @media (max-width: 480px) {
    .modal-content {
      width: 95%;
      margin: 20px;
    }
    
    .edit-modal {
      max-width: none;
    }
    
    .modal-header {
      padding: 15px;
    }
    
    .modal-header h3 {
      font-size: 16px;
    }
    
    .modal-body {
      padding: 25px 15px;
    }
    
    .warning-icon {
      font-size: 40px;
    }
    
    .message-icon {
      width: 50px;
      height: 50px;
      font-size: 24px;
    }
    
    .modal-text {
      font-size: 16px;
    }
    
    .modal-subtitle {
      font-size: 13px;
    }
    
    .form-group {
      margin-bottom: 16px;
    }
    
    .form-group label {
      font-size: 13px;
      margin-bottom: 6px;
      text-align: left;
    }
    
    .form-input {
      padding: 10px 12px;
      font-size: 14px;
    }
    
    .form-hint {
      font-size: 11px;
      margin-top: 4px;
    }
    
    .cancel-btn,
    .confirm-btn {
      padding: 10px 15px;
      font-size: 14px;
    }
    
    .modal-footer {
      gap: 10px;
    }
    
    .qr-modal {
      max-width: none;
      min-width: auto;
    }
    
    .qr-image {
      width: 240px;
      height: 240px;
      padding: 8px;
    }
    
    .qr-title {
      font-size: 16px;
    }
    
    .qr-subtitle {
      font-size: 13px;
    }
    
    .download-btn {
      padding: 10px 15px;
      font-size: 14px;
    }
  }